<template>
    <div class="content-header">
        <div class="content-header-left"><slot name="left" /></div>
        <div class="content-header-right"><slot name="right" /></div>
    </div>
</template>

<script>
export default {
    name: 'content-header',
    props: {},
    data() {
        return {}
    },
    methods: {},
}
</script>

<style scoped lang="scss">
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 0px 6px 0px #e0e0e0;
    padding: 0 20px;
    margin-bottom: 20px;
    &-left {
        display: flex;
        align-items: center;
        flex-grow: 1;
        h3 {
            margin: 0 10px 0 0;
        }
        .alarm-tag {
            padding: 5px 10px;
            border-radius: 16px;
            font-size: 12px;
            font-family: PingFangSC, PingFangSC-Regular;
        }
        .danger {
            background: #fb404933;
            border: 1px solid #fb4049;
            box-shadow: 0px 0px 4px 0px #fb404933;
            color: #fb4049;
        }
        .yellow {
            background: #fcc70033;
            border: 1px solid #fcc700;
            box-shadow: 0px 0px 4px 0px #fcc70033;
            color: #fcc700;
        }
        .normal {
            background: #d3e5ff;
            border: 1px solid #016aff;
            box-shadow: 0px 0px 4px 0px #d3e5ff;
            color: #016aff;
        }
        .orange {
            background: #fa8c1533;
            border: 1px solid #fa8c15;
            box-shadow: 0px 0px 4px 0px #fa8c1533;
            color: #fa8c15;
        }
    }
    &-right {
        span {
            font-size: 14px;
            font-family: PingFangSC, PingFangSC-Regular;
            color: #00152a;
            margin: 0 20px;
            b {
                font-size: 24px;
                font-family: AlibabaPuHuiTiH;
                font-weight: 800;
                color: #016aff;
            }
        }
    }
}
</style>
